Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Route Groups [WIP] #13148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

janus-reith
Copy link

Changes

This aims to add Route Groups, as known from Next.js and requested here: withastro/roadmap#480

Folder names in (parenthesis) should be excluded from the route structure, but their content should not be.

This can especially be helpful with boilerplates to encapsulate some of the logic.

Testing

Some tests should be added for sure. I had a quick look at packages/astro/test/route-manifest.test.js but they are all commented out.

I did some quick manual testing to check that it works as expected, however can't rule out that there have been major oversights since I didn't dig trough the whole codebase.

Docs

Docs should be added for this, probably a small passage in https://docs.astro.build/en/guides/routing/
As this this should not clash with any existing route logic, this could hopefully be kept rather short

Copy link

changeset-bot bot commented Feb 6, 2025

⚠️ No Changeset found

Latest commit: c4c0422

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Feb 6, 2025
@janus-reith janus-reith changed the title Feat: Add Route Groups [WIP] feat: Add Route Groups [WIP] Feb 6, 2025
Copy link

codspeed-hq bot commented Feb 6, 2025

CodSpeed Performance Report

Merging #13148 will not alter performance

Comparing janus-reith:feat/route-manifest-add-route-groups (c4c0422) with main (d1384b8)

Summary

✅ 6 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant